#include <iostream>
#include <iomanip>
using namespace std;

int main() {
	double r, pi = 3.14159, s, c;
	cin >> r;
	s = pi * r * r;
	c = 2 * pi * r;
	cout << fixed << setprecision(3) << s << endl; //精确到小数点后3位
	cout << fixed << setprecision(3) << c << endl; //精确到小数点后3位
	return 0;
}

/*
 #include<stdio.h>

 int main() {
 float r, c, s, pi = 3.14159;
 scanf("%f", &r);

 c = 2 * pi * r;
 s = pi * r * r;

 printf("%.3f\n", s);
 printf("%.3f\n", c);
 return 0;
 }
 */
